/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import dataAccess.TimeTableJpaController;
import entities.TimeTable;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author QUY-THI
 */
public class TimeTableDetail {

    public TimeTable timeTableDetail(int id) {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("E-AdministrationPU");
        TimeTableJpaController tt = new TimeTableJpaController(emf);
        return tt.findTimeTable(id);
    }
}
